package com.dkm.ec.relation.repository.impl;

import java.util.ArrayList;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.dkm.base.core.helper.SpringHelper;
import com.dkm.base.db.persistence.dao.IQueryDao;
import com.dkm.biz.repository.AbstractRepository;
import com.dkm.ec.relation.domain.AddressList;
import com.dkm.ec.relation.repository.AddressListRepository;
import com.dkm.ec.relation.persistence.dao.AddressListQueryDao;
import com.dkm.ec.relation.persistence.entity.AddressListPo;

/**
 * 对象功能:t_relation_address_list Repository接口的实现类
 * 开发公司:dkm.com
 * 开发人员:ZHH
 * 创建时间:2017-07-22 17:06:50
 */
@Repository
public class AddressListRepositoryImpl extends AbstractRepository<String, AddressListPo,AddressList> implements AddressListRepository{
	  
	@Resource
	private  AddressListQueryDao addressListQueryDao;

	public AddressList newInstance() {
		AddressListPo po = new AddressListPo();
		AddressList addressList = SpringHelper.getBean(AddressList.class);
		addressList.setData(po);
		return addressList;
	}

	public AddressList newInstance(AddressListPo po) {
		AddressList addressList = SpringHelper.getBean(AddressList.class);
		addressList.setData(po);
		return addressList;
	} 
	
	@Override
	protected IQueryDao<String, AddressListPo> getQueryDao() {
		return addressListQueryDao;
	}
	
}
